import request from '@/utils/request'
import ECharts from "vue-echarts";
import App from 'App.vue'
import 'echarts';

createApp(App)
  .component('ECharts',ECharts)
  .mount('#app');


// 查询展示词云图列表
export function listMain(query) {
  return request({
    url: '/wordcloud/distr/list',
    method: 'get',
    params: query
  })
}

// 查询展示词云图详细
export function getMain(tpId) {
  return request({
    url: '/wordcloud/distr/' + tpId,
    method: 'get'
  })
}

// 新增展示词云图
export function addMain(data) {
  return request({
    url: '/wordcloud/distr',
    method: 'post',
    data: data
  })
}

// 修改展示词云图
export function updateMain(data) {
  return request({
    url: '/wordcloud/distr',
    method: 'put',
    data: data
  })
}

// 删除展示词云图
export function delMain(tpId) {
  return request({
    url: '/wordcloud/distr/' + tpId,
    method: 'delete'
  })
}
